SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 56409: The NULLCHAR and NULLCHARVAL options are not honored when you use the Netezza bulk-load facility

DetailsHotfixAboutRate It

The NULLCHAR and NULLCHARVAL data set options are not honored when you are using the SAS/ACCESS® Interface to Netezza bulk-load facility and you write data from SAS to Netezza.

The following code illustrates this behavior:

proc sql;
create table work.foo (i int, c char(10));
insert into work.foo values (null, null);
quit;

libname x netezza server=nzserver user=nzuser pwd=nzpwd database=nzdb;

proc sql;
create table x.foo (i int, c char(10));
quit;

proc append base=x.foo (bulkload=yes)data=work.foo;
run;

SAS tracing shows that the bulk-load facility generates a query like this:

INSERT INTO TEST..foo SELECT * FROM  EXTERNAL
'\\.\pipe\BL_foo_B9C24C51-0C90-4C29-BDA5-B0F828E0A59F' USING ( DELIMITER '|'
REMOTESOURCE 'ODBC'
NULLVALUE '' )

The generated query specifies NULLVALUE ' ', so any source nulls are represented as NULL in Netezza.

If you want a NULLVALUE of X, submit code specifying NULLCHARVAL='x'. Here is an example:

/* try with NULLCHAR=NO and NULLCHARVAL='x' options */
/* you expect that instead of NULL, you get 'x' */

proc append base=x.foo
(bulkload=yes nullchar=no nullcharval='x')
data=work.foo;
run;

But SASTRACE shows the same generated query:

INSERT INTO TEST..foo SELECT * FROM  EXTERNAL
'\\.\pipe\BL_foo_5DB60B77-E56D-4451-812E-11463C52E203' USING ( DELIMITER '|'
REMOTESOURCE 'ODBC'
NULLVALUE '' )

This behavior does not occur in DATA step code that does not specify BULKLOAD.

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to NetezzaMicrosoft® Windows® for x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8 Enterprise 32-bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8 Enterprise x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8 Pro 32-bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8 Pro x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8.1 Enterprise 32-bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8.1 Enterprise x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8.1 Pro9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows 8.1 Pro 32-bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2003 Datacenter Edition9.3_M19.3 TS1M2
Microsoft Windows Server 2003 Enterprise Edition9.3_M19.3 TS1M2
Microsoft Windows Server 2003 Standard Edition9.3_M19.3 TS1M2
Microsoft Windows Server 2003 for x649.3_M19.3 TS1M2
Microsoft Windows Server 20089.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2008 R29.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2008 for x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2012 Datacenter9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2012 R2 Datacenter9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2012 R2 Std9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows Server 2012 Std9.3_M19.4_M49.3 TS1M29.4 TS1M4
Microsoft Windows XP Professional9.3_M19.3 TS1M2
Windows 7 Enterprise 32 bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Enterprise x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Home Premium 32 bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Home Premium x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Professional 32 bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Professional x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Ultimate 32 bit9.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows 7 Ultimate x649.3_M19.4_M49.3 TS1M29.4 TS1M4
Windows Vista9.3_M19.3 TS1M2
Windows Vista for x649.3_M19.3 TS1M2
64-bit Enabled AIX9.3_M19.4_M49.3 TS1M29.4 TS1M4
64-bit Enabled HP-UX9.3_M19.4_M49.3 TS1M29.4 TS1M4
64-bit Enabled Solaris9.3_M19.4_M49.3 TS1M29.4 TS1M4
HP-UX IPF9.3_M19.4_M49.3 TS1M29.4 TS1M4
Linux9.3_M19.4_M49.3 TS1M29.4 TS1M4
Linux for x649.3_M19.4_M49.3 TS1M29.4 TS1M4
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.